package com.youkeyi.ddy.cloud.common.api.basic.pub.corp;

import com.youkeyi.ddy.cloud.common.api.basic.pub.corp.dto.PublicCorpSortListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.corp.param.PublicCorpSortCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.corp.param.PublicCorpSortDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.corp.param.PublicCorpSortQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.corp.param.PublicCorpSortUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * PublicCorpSortCloudService
 *
 * @Corpor liuxiawang
 * @Date 2024/2/19 2:31 PM
 * @Location shenzhen.china
 */
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-BASIC-PUBLIC", fallback = PublicCorpSortCloudServiceFallback.class)
@RequestMapping("/public/corp/sort")
public interface PublicCorpSortCloudService {

    /**
     * 查询关联主体排序列表.
     *
     * @param param the param
     * @return the corp sort list cloud dto
     */
    @PostMapping(value = "/query")
    public abstract PublicCorpSortListCloudDto query(@RequestBody PublicCorpSortQueryCloudParam param);

    /**
     * 新增关联主体排序.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/create")
    public abstract ResponseContent create(@RequestBody PublicCorpSortCreateCloudParam param);

    /**
     * 编辑关联主体排序.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/update")
    public abstract ResponseContent update(@RequestBody PublicCorpSortUpdateCloudParam param);

    /**
     * 删除关联主体排序.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/delete")
    public abstract ResponseContent delete(@RequestBody PublicCorpSortDeleteCloudParam param);
}
